const mongoose=require("mongoose")
let Schema=mongoose.Schema

mongoose.connect("mongodb://127.0.0.1:27017/feiji",{
    useNewUrlParser:true,
    useUnifiedTopology:true
})

let songDatas=mongoose.model("songDatas",new Schema({
    songMid:{
        type:String,
        required:true
    },
    m4aUrl:{
        type:String,
        required:true
    },
    songName:{
        type:String,
        required:true
    },
    playTime:{
        type:String,
        required:true
    },
    songPic:{
        type:String,
        required:true
    }
}))

module.exports={
    songDetailTable:songDatas
}
